home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Controls
/
Visual Basic Controls.iso
/
vbcontrol
/
em7sui_1
/
PROGRESS.WR_
/
PROGRESS.WR
Wrap
Text File
|
1998-10-22
|
2KB
|
85 lines
#VRML V2.0 utf8
# Copyright Electrohouse 1998
# This file may not be copied, modified or distributed
# in any way which violates the ProtoPak licensing
# agreement established by Electrohouse.
EXTERNPROTO em7_ToString [
eventIn SFBool SFBoolValue
eventIn SFFloat SFFloatValue
eventIn SFInt32 SFInt32Value
eventIn SFString SFStringValue
eventIn SFTime SFTimeValue
eventIn SFVec2f SFVec2fValue
eventIn SFVec3f SFVec3fValue
eventIn SFColor SFColorValue
eventIn SFRotation SFRotationValue
eventIn MFFloat MFFloatValue
eventIn MFInt32 MFInt32Value
eventIn MFVec2f MFVec2fValue
eventIn MFVec3f MFVec3fValue
eventIn MFColor MFColorValue
eventIn MFRotation MFRotationValue
eventOut MFString MFStringResult
] "..\VR_COMMON.wrl#em7_ToString"
EXTERNPROTO em7_ProgressBar [
exposedField SFNode appearance
field SFFloat radius
field SFFloat height
field SFFloat percentageComplete
eventIn SFFloat set_percentageComplete
eventOut SFFloat percentageComplete_changed
] "..\VR_UI.wrl#em7_ProgressBar"
DEF PROGRESS em7_ProgressBar {
appearance Appearance { material Material { diffuseColor 0.2 0.4 0.8 } }
percentageComplete 0.33
}
Transform {
translation 0 2 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.2 0.4 0.8
transparency 0.5
}
}
geometry Box {}
}
DEF TOUCH TouchSensor {}
]
}
Transform {
translation 0 -1 0
children [
Shape {
geometry DEF VALUE_TEXT Text {
fontStyle FontStyle {
justify "MIDDLE"
}
}
}
]
}
DEF TIME TimeSensor {
enabled TRUE
cycleInterval 6
loop FALSE
}
DEF TO_STRING em7_ToString {}
ROUTE TOUCH.touchTime TO TIME.set_startTime
ROUTE TIME.fraction_changed TO PROGRESS.set_percentageComplete
ROUTE PROGRESS.percentageComplete_changed TO TO_STRING.SFFloatValue
ROUTE TO_STRING.MFStringResult TO VALUE_TEXT.set_string